<meta charset="utf-8">
<style>
  body{
    width: 320px;
    padding: 20px;
  }
  .plug-menu{
    text-align: center;
  }
  .plug-menu label{
    display: block;
    margin-bottom: 14px;
  }
  input{
    min-width: 220px;
    padding: 2px 4px;
    border: 1px solid #aaa;
    outline: none;
  }
  .controller{
    margin-bottom: 30px;
  }
  .controller span{
    display: inline-block;
    margin: 4px;
    padding: 4px 12px;
    border: 1px solid #ff557f;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
  }

  .controller span:hover,
  .content .delAllBtn:hover{
    color: #fff;
    background-color: #ff557f;
  }
  .content{
    position: relative;
    margin-bottom: 20px;
    padding: 10px 0;
    min-height: 60px;
    border: 1px solid #ff557f;
  }
  .content .title{
    display: inline-block;
    position: absolute;
    top: -10px;
    left: 10px;
    padding: 4px 12px;
    color: #fff;
    background-color: #ff557f;
  }
  .content .delAllBtn{
    display: block;
    position: absolute;
    right: 10px;
    top: -10px;
    padding: 4px 12px;
    background-color: #fff;
    border: 1px solid #ff557f;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
  }
  
 .expire-content{
    display: none;
  }
  .memorylist{
    padding: 4px 16px;
  }
  .memorylist li{
    width: 22em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #tips{
    color: #666;
    text-align: right;
  }
</style>

<h2>记忆本</h2>
<div class="plug-menu">
  <label>标题：<input type="text" placeholder="关键词标题"></label>
  <label>网址：<input type="text" placeholder="网址或详细内容"></label>
  <div class="controller">
    <span>本页信息</span>
    <span>清空</span>
    <span>加入记忆卡</span>
  </div>
</div>
<div class="content">
  <div class="title">记忆区</div>
  <span class="delAllBtn">归零</span>
  <ul class="memorylist"></ul>
</div>
<div class="expire-content content">
  <div class="title">15天前</div>
  <ul class="memorylist"></ul>
</div>

<p>注：还未来得及学习的页面可将当前所有页面存入收藏夹 [ctrl+shift+d] 或集锦内。</p>
<p id="tips"></p>
<script type="text/javascript" src="main.js"></script>